<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>添加管理员</title>
<{include file="js.html"}>


<script type="text/javascript">
	
    function loadData()
	{
		
              
		 $(".formOne").Validform({
			
			 // btnReset:".btn_reset"
	});    
	}    
    </script>
	
</head>
    <body  onload="loadData()">
<div class=" box pd-20" >
    <form  id="myFormOne"  method="post" action="<{$_basename}>?action=submit&id=<{$row.id}>" enctype='multipart/form-data' class="form formOne  form-horizontal"  >
    	<div class="row cl" >
			<label class="form-label col-3"><span class="c-red">*</span>产品:</label>
			<div class="formControls col-5" >
                            <input type="text" class="input-text" value='<{$company_id}>'  name="company_id" style="display: none;"/>
			<input type="text" class="input-text" value='<{$row.name}>' placeholder="请输入产品名" id="company-name" name="name" datatype="*" nullmsg="公司名不能为空"/>
			</div>
			<div class="col-4"> </div>
	</div>
        <div class="row cl" >
			<label class="form-label col-3"><span class="c-red">*</span>产品价格:</label>
			<div class="formControls col-5" >
			    <input type="text" class="input-text" value='<{$row.price}>' placeholder="请输入产品价格" id="company-name" name="price" datatype="*" nullmsg="公司名不能为空"/>
			</div>
			<div class="col-4"> </div>
	</div>
        <div class="row cl" >
			<label class="form-label col-3"><span class="c-red">*</span>产品期限:</label>
			<div class="formControls col-5" >
			<input type="text" class="input-text" value='<{$row.time_imit}>' placeholder="请输入产品期限" id="company-name" name="time_imit" datatype="*" nullmsg="公司名不能为空"/>
			</div>
			<div class="col-4"> </div>
	</div>
         
         <div class="row cl" >
			<label class="form-label col-3"><span class="c-red" ></span>产品图片一:</label>
                        <div >
                            
                        </div>
			<div class="formControls col-5">
				<input placeholder="请上传图片" id="company_img0" name="img_0"  nullmsg="必须上传图片" type="file"   style="height:30px; margin-top:6px " />
			</div>
			
		</div>
     <{if $row.img_0!=""}>
		<div class="row cl">
			<label class="form-label col-3"><span class="c-red"></span>预览:</label>
			<div class="formControls col-5">
				<a target="_blank" href="../business/upload/product/<{$row.img_0}>"><img src="../business/upload/product/<{$row.img_0}>" width="110" height="60" /></a>
			</div>
			<div class="col-4"> </div>
		</div>
        <{/if}>
		
         <div class="row cl" >
			<label class="form-label col-3"><span class="c-red" ></span>产品图片二:</label>
                        <div >
                            
                        </div>
			<div class="formControls col-5">
				<input placeholder="请上传图片" id="company_img1" name="img_1"  nullmsg="必须上传图片" type="file"    style="height:30px; margin-top:6px " />
			</div>
			
		</div>
     <{if $row.img_1!=""}>
		<div class="row cl">
			<label class="form-label col-3"><span class="c-red"></span>预览:</label>
			<div class="formControls col-5">
				<a target="_blank" href="../business/upload/product/<{$row.img_1}>"><img src="../business/upload/product/<{$row.img_1}>" width="110" height="60" /></a>
			</div>
			<div class="col-4"> </div>
		</div>
        <{/if}>
         <div class="row cl" >
			<label class="form-label col-3"><span class="c-red" ></span>产品图片三:</label>
                        <div >
                            
                        </div>
			<div class="formControls col-5">
				<input placeholder="请上传图片" id="company_img2" name="img_2"  nullmsg="必须上传图片" type="file"    style="height:30px; margin-top:6px " />
			</div>
			
		</div>
     <{if $row.img_2!=""}>
		<div class="row cl">
			<label class="form-label col-3"><span class="c-red"></span>预览:</label>
			<div class="formControls col-5">
				<a target="_blank" href="../business/upload/product/<{$row.img_2}>"><img src="../business/upload/product/<{$row.img_2}>" width="110" height="60" /></a>
			</div>
			<div class="col-4"> </div>
		</div>
        <{/if}>
         <div class="row cl">
			<label class="form-label col-3" ><span class="c-red"></span>产品详情:</label>
			<div class="formControls col-5">  
                            <textarea name="detail" class="textarea" ><{$row.detail_description}></textarea>
<!--				< textarea     name ="content[]"  id="<{$content.id}>_<{$content.cd_id}>"   placeholder="内容" autocomplete="on" value="<{$content.content}>" class="input-text" datatype="*" nullmsg="<{$content.content}>不能为空">-->
			
			</div>
			<div class="col-4"> </div>
		</div>
    <div class="row cl">
			<div class="col-9 col-offset-3">
            <input  type="submit" name="submit" value="发布" class="inp" />
            <input  type="button" name="btn_reset"  value="重置" class="btn_reset inp" />
			</div>
    </div>
    </form>  
	
</div>

</body>
</html>